package org.rency.ues.engine.service;

import org.rency.ues.domain.request.CreateCertificationRequest;
import org.rency.ues.domain.response.CreateCertificationResponse;
import org.rency.ues.domain.support.Certification;

import java.security.cert.X509Certificate;

/**
 * 证书服务
 *
 * @author: Created by user_rcy@163.com on 2016/07/31.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public interface CertificationService {

    /**
     * 创建证书
     * @param request
     * @return
     */
    public CreateCertificationResponse create(CreateCertificationRequest request);

    /**
     * 获取证书
     * @param serialNo
     * @return
     */
    public X509Certificate getX509Certification(String serialNo);

    public Certification getCertification(String serialNo);
}